import requests

# 检查版本
print(requests.__version__)  # 输出如 2.31.0

# 验证功能
try:
    response = requests.get('https://httpbin.org/get', timeout=5)
    print("requests工作正常，状态码:", response.status_code)
except Exception as e:
    print("requests异常:", e)